﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace BoriPeter.NutritionManager.WinFormsClient
{
    [XmlRoot("foods")]
    public class FoodsModel
    {
        [XmlElement("food")]
        public List<FoodModel> FoodsList { get; set; }
    }

    public class FoodModel
    {
        [XmlElement("foodName")]
        public string FoodName { get; set; }

        [XmlElement("calories")]
        public decimal Calories { get; set; }

        [XmlElement("carbohydrate")]
        public decimal Carbohydrate { get; set; }

        [XmlElement("protein")]
        public decimal Protein { get; set; }

        [XmlElement("fat")]
        public decimal Fat { get; set; }

        [XmlElement("cholesterol")]
        public decimal Cholesterol { get; set; }

        [XmlElement("sugar")]
        public decimal Sugar { get; set; }

        [XmlElement("vitaminA")]
        public decimal VitaminA { get; set; }

        [XmlElement("vitaminC")]
        public decimal VitaminC { get; set; }

        [XmlElement("calcium")]
        public decimal Calcium { get; set; }

        [XmlElement("iron")]
        public decimal Iron { get; set; }
    }
}
